package com.hpe.repository;

import com.hpe.model.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by tiansha on 2015/12/2.
 */
public interface ProductRepository extends CrudRepository<Product, Long> {

    Product findByName(String name);

    Page<Product> findAll(Pageable pageable);

}
